package com.zuche.seraph.system.controller;

import com.zuche.seraph.system.entity.AppBean;
import com.zuche.seraph.system.service.AppService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SeraphApp)表控制层
 *
 * @author makejava
 * @since 2021-08-29 21:07:13
 */
@RestController
@RequestMapping("seraphApp")
public class AppController {
    /**
     * 服务对象
     */
    @Resource
    private AppService appService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public AppBean selectOne(Integer id) {
        return this.appService.queryById(id);
    }

}
